#!usr/bin/python3

class Employee:
    empCount = 0

    def __init__(self, name, salary) -> None:
        self.name = name
        self.salary = salary
        Employee.empCount += 1

    def displayCount(self) -> None:
        print('Total Employee %d' % Employee.empCount)
    
    def displayEmployee(self):
        print('Name:' + self.name, 'Salary:' + self.salary)

emplyee = Employee('jtr', '20k')
emplyee.displayCount()
emplyee.displayEmployee()

emplyee = Employee('LOST', '5k')
emplyee.displayCount()
emplyee.displayEmployee()

# print(Employee.__doc__)
# print(Employee.__name__)
# print(Employee.__module__)
# print(Employee.__bases__)
# print(Employee.__dict__)

class Child(Employee):
    def __init__(self, name, salary) -> None:
        super().__init__(name, salary)
        
    def childMethod(self):
        print(self.name)


child = Child('leo', 992)
child.childMethod()
child.displayEmployee()